﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{
   public abstract class BaseModel
    {
       public BaseModel()
       {
           this.CreateDate = DateTime.Now;           
       }

       /// <summary>
       /// 每个表的自增ID （Auto-ID）
       /// </summary>
       public int AID { get; set; }
       /// <summary>
       /// 创建时间
       /// </summary>
       public DateTime CreateDate { get; set; }
       /// <summary>
       /// 创建人
       /// </summary>
       public string Creator { get; set; }
       /// <summary>
       /// 版本ID： 用于并发检查
       /// </summary>
       public long Version { get; set; }
    }
}
